#frontend
import requests
from socket import *


cSocket = socket(AF_INET,SOCK_STREAM)
addr = ('localhost',3001)
cSocket.connect(addr)

inputData = input("请输入网址：")
cSocket.send(inputData.encode())
data = cSocket.recv(4096)
with open("2.html",'wb') as f:
    f.write(data)
cSocket.close()
